package com.yang.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangbo
 * @date 2019-09-11 9:20
 */
@RestController
public class DemoController {

    @GetMapping(value = "/actuator/health")
    public String health() {
        return "SUCCESS";
    }

    @GetMapping(value = "/sayHello")
    public String sayHello(String name) {
        return "hello," + name;
    }
}
